<!--新建或编辑日志-->
<div class="modal">
    <ion-header-bar class="bar-secondary">
        <h1 class="title">编辑日志</h1>
        <button class="button button-clear button-positive" on-touch="method.modalCtrl('newOne', 'hide')">cancel</button>
    </ion-header-bar>
    <ion-content scroll="false" overflow-scroll="false">
        <form ng-submit="method.addDiary(newModel)">
            <div class="list">
                <label class="item item-input">
                    <span class="input-label">标题</span>
                    <input type="text" ng-model="newModel.title" />
                </label>
                <label class="item item-input">
                    <textarea placeholder="日志内容" rows="3" ng-model="newModel.text" /></textarea>
                </label>
            </div>
            <div class="padding">
                <button type="submit" class="button button-block button-positive">SUBMIT</button>
            </div>
        </form>
    </ion-content>
</div>
